Sync Configuration
interface SyncConfiguration
Content copied to clipboard
A SyncConfiguration is used to setup a Realm Database that can be synchronized between devices using Atlas Device Sync.
A valid User is required to create a SyncConfiguration. See Credentials and App.login for more information on how to get a user object.
A minimal SyncConfiguration can be found below.
val app = App.create(appId)
val user = app.login(Credentials.anonymous())
val config = SyncConfiguration.create(user, "partition-value", setOf(YourRealmObject::class))
val realm = Realm.open(config)
Types
Properties
errorHandler
Link copied to clipboard
initialRemoteData
Link copied to clipboard
initialSubscriptions
Link copied to clipboard
syncClientResetStrategy
Link copied to clipboard